package com.kern.service.impl;

import com.kern.api.pojo.Dept;
import com.kern.dao.DeptDao;
import com.kern.service.DeptService;
import org.springframework.stereotype.Service;

/**
 * Created by caoshi at 21:10 2021-09-04
 */
@Service
public class DeptServiceImpl implements DeptService {


    public Dept getDeptById(String id) {
        System.out.println("Service 层查询部门: id = " + id);
        DeptDao dao = new DeptDao();
        return dao.findById(id);
    }
}
